//笔试标签

export const writeTagList = [

    {
        name: '行测',
        value: 'A',
        subTags: [
            { name: '政治理论', value: 'A_1' },
            { name: '常识判断', value: 'A_2' },
            {
                name: '言语理解与表达',
                value: 'A_3',
                children: [
                    { name: '词语填空', value: 'A_3_1' },
                    { name: '片段阅读', value: 'A_3_2' },
                    { name: '篇章阅读', value: 'A_3_3' },
                    { name: '语句表达', value: 'A_3_4' },
                ]
            },
            {
                name: '数量关系',
                value: 'A_4',
                children: [
                    { name: '数学推理', value: 'A_4_1' },
                    { name: '数学运算', value: 'A_4_2' }
                ]
            },
            {
                name: '判断推理',
                value: 'A_5',
                children: [
                    { name: '图形推理', value: 'A_5_1' },
                    { name: '类比推理', value: 'A_5_2' },
                    { name: '定义判断', value: 'A_5_3' },
                    { name: '逻辑判断', value: 'A_5_4' },
                    { name: '科学推理', value: 'A_5_5' },

                ]
            },
            {
                name: '资料分析',
                value: 'A_6',
                children: [
                    { name: '文字型', value: 'A_6_1' },
                    { name: '图表型', value: 'A_6_2' },
                    { name: '综合型', value: 'A_6_3' },

                ]
            }
        ]
    },
    {
        name: '职测',
        value: 'B',
        subTags: [
            { name: '职业能力测试', value: 'B_1' },
            { name: '职业性格测试', value: 'B_2' }
        ]
    },
    {
        name: '公基',
        value: 'C',
        subTags: [
            { name: '政治', value: 'C_1' },
            { name: '经济', value: 'C_2' },
            { name: '法律', value: 'C_3' },
            { name: '历史', value: 'C_4' },
            { name: '地理', value: 'C_5' }
        ]
    },
    {
        name: '申论',
        value: 'D',
        subTags: [
            { name: '归纳概括', value: 'D_1' },
            { name: '综合分析', value: 'D_2' },
            { name: '提出对策', value: 'D_3' },
            { name: '贯彻执行', value: 'D_4' }
        ]
    },
    {
        name: '综合应用能力',
        value: 'E',
        subTags: [
            { name: '案例分析', value: 'E_1' },
            { name: '公文写作', value: 'E_2' },
            { name: '综合分析', value: 'E_3' }
        ]
    },
    {
        name: '专业科目',
        value: 'F',
        subTags: [
            { name: '法律', value: 'F_1' },
            { name: '经济', value: 'F_2' },
            { name: '计算机', value: 'F_3' },
            { name: '医学', value: 'F_4' },
            { name: '教育', value: 'F_5' }
        ]
    },
    {
        name: '其他',
        value: 'Z',
        // subTags: [
        //     { name: '面试', value: 'Z_1' },
        //     { name: '时政', value: 'Z_2' },
        //     { name: '备考指南', value: 'Z_3' }
        // ]
    }
];

//面试标签
export const interviewTagList = [
    { name: '公务员面试', value: '1' },
    { name: '事业单位面试', value: '2' },
    { name: '遴选面试', value: '3' },
    { name: '社会热点', value: '4' },
    { name: '其他素材', value: '5' }
]
export const getTagList = (type) =>
    type === '笔试' ? writeTagList : type === '面试' ? interviewTagList : []

export const getWriteTagOptions = (name) => {

    return writeTagList.filter(item => item.name === name)[0].subTags

}
export const getWriteChildTagOptions = (name, childName) => {
    return writeTagList.filter(item => item.name === name)[0].subTags.filter(item => item.name === childName)
}


export const getInterViewItem = (value) => {
    return interviewTagList.filter(item => item.value == value)[0]
}


